
<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">

<title>${setting.siteName}- 主页</title>
<meta name="keywords" content="${setting.siteName}">
<meta name="description" content="${setting.siteName}">

<!-- BEGIN HEADER -->
[#include "/admin/include/style.ftl"]
<!-- END HEADER -->
</head>

<body class="gray-bg">
	<div class="wrapper wrapper-content  animated fadeInRight">

		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<form id="listForm" action="list.jhtml" method="get">
						<div class="ibox-title">

							<h5>文章管理</h5>
						</div>
						<div class="ibox-content">
							<div class="ibox-content">
								<div class="row">
									<div class="col-sm-3 m-b-xs">
										<input type="text" placeholder="请输入标题" name="filter_title"
											value="${(paramter.title)!''}" class="input-sm form-control">
									</div>
									<div class="col-sm-4 m-b-xs">
										<div class="input-group">
											<span class="input-group-addon">更新时间</span> <input
												type="text" class="form-control input-sm"
												name="filter_createDates"
												value="${(paramter.createDates)!''}"
												onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
												placeholder="选择起止时间"> <span
												class="input-group-addon">到</span> <input type="text"
												class="form-control input-sm" name="filter_createDatee"
												value="${(paramter.createDatee)!''}"
												onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
												placeholder="选择结束时间">
										</div>
									</div>

									<div class="col-sm-2">
										<div class="input-group">
											<button type="button"
												class="btn btn-sm btn-primary loippi-search-button">
												搜索</button>&nbsp;
											<a type="reset" class="btn btn-sm btn-info" href="list.jhtml">重置</a>
										</div>
									</div>
								</div>

								<!--列表开始BEGIN-->
								<div class="dataTables_wrapper form-inline">
									<table
										class="table table-striped table-bordered table-hover dataTables-example dataTable">
										<thead>
											<tr>
												<th>文章ID</th>
												<th>标题</th>
												<th>发布时间</th>
												<th>操作</th>
											</tr>
										</thead>
										<tbody>
											[#list page.content as article]
											<tr>
												<td>${article.id!''}</td>
												<td>${article.title!''}</td>
												<td>${(article.createDate)?string('yyyy-MM-dd HH:mm')!''}</td>
												<td><a class="btn btn-info btn-xs btn-edit-loippi"
													data-id="${article.id}" href="edit.jhtml?id=${article.id}"><i
														class="fa fa-paste"></i> 编辑</a> 
												</td>
											</tr>
											[/#list]
										</tbody>
									</table>
									[@pagination pageNumber = page.pageNumber totalPages =
									page.totalPages] [#include "/admin/include/pagination.ftl"]
									[/@pagination]
								</div>
							</div>
					</form>
				</div>
			</div>
		</div>
	</div>

	<!-- BEGIN Script -->
	[#include "/admin/include/script.ftl"]
	<!-- END Script -->
	<script>
    
        $(document).ready(function () {
        	[@flash_message /]
            $(".input-daterange").datepicker({keyboardNavigation:false,forceParse:false,autoclose:true});
        });
    </script>
</body>

</html>
